﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MagicArenaFramework.GameObject.Components;

namespace MagicArenaFramework.GameObject.Attributes
{
    public abstract class ScalarAttribute : GoComponent
    {
        public UInt32 Family { get; private set; }
        public float Value { get;protected set; }

        public ScalarAttribute(UInt32 family, float initValue)
        {
            Family = family;
            Value = initValue;
        }

        public void RegisterSelf(ScalarAttributeHolder parent)
        {
            parent.AddUpdateValue(Family, Value);
            base.RegisterSelf(parent);
        }

        
    }
    
}
